#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>

static int __init my_driver_init(void) {
    printk(KERN_INFO "My driver loaded.\n");
    return 0;
}

static void __exit my_driver_exit(void) {
    printk(KERN_INFO "My driver unloaded.\n");
}

module_init(my_driver_init);
module_exit(my_driver_exit);

MODULE_LICENSE("GPL");
MODULE_AUTHOR("Your Name");
MODULE_DESCRIPTION("A simple example Linux driver");

